//package com.ruoyi.framework.config;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.kafka.annotation.KafkaListener;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class KafkaConfig {
//
//    private static final String TOPIC = "zhstest11";
//
//    //接收数据
//    @KafkaListener(topics = TOPIC, groupId = "my-group")
//    public void consume(String message) {
//        log.info("接收到的数据为: " + message);
//    }
//}
